import request from '@/utils/request'


// 获取聊天记录
export function getMsgList(senderId) {
  return request({
    url: '/admin/mp/message/msgList',
    method: "GET",
    params:{
        senderId
    }
  })
}


// 获取好友列表
export function getFriendList() {
  return request({
    url: '/admin/mp/message/friendList',
    method: "GET",
  })
}

export function cleanUnread(receiverId){
  return request({
    url:'/admin/mp/message/cleanUnread',
    method:"Delete",
    params:{
      receiverId
    }
  })
}